#!/bin/bash

install_bisheng_software_support_list=("KML" "KUPL" "HMPI" "KULITHO" "KuTACC")
install_bisheng_options=("[v]" "[v]" "[v]" "[x]" "[v]")
install_bisheng_description=(
"Kunpeng Math Library (Bisheng compiled)"
"Kunpeng Unified Parallel Library (Bisheng compiled)"
"Hyper Message Passing Interface (Bisheng compiled)"
"Kunpeng Lithography (Bisheng compiled)"
"Kunpeng Unified Transformer Accelerator (Bisheng compiled)")

install_bisheng_prompt() {
    logInfo "Start Installing Bisheng Compiled Component..."
    logInfo "Please Enter (1-$1) to switch component selection, only checked component(s) will be installed."
    logInfo "Enter 'q' to quit, 'y' or enter to confirm component installation."
}

toggle_install_bisheng_option() {
    local index=$1
    if [ "${install_bisheng_options[index]}" == "[v]" ]; then
        install_bisheng_options[index]="[x]"
    else
        install_bisheng_options[index]="[v]"
    fi
}
